﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.ComponentModel.DataAnnotations;

namespace AppSocketModel
{
    /// <summary>
    /// 账户模型
    /// </summary>
    [BsonIgnoreExtraElements]
    public class AccountLoginDto
    { 
        /// <summary>
        /// 登录账号类型
        /// </summary>
        [Required(ErrorMessage = "登录账号类型")]
        public AccountCodeType AccountCodeType { set; get; }

        /// <summary>
        /// 登录账户号
        /// </summary> 
        public string AccountCode { set; get; }
        
        /// <summary>
        /// 密码
        /// </summary> 
        public string Password { set; get; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { set; get; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string VerifyCode { set; get; }

    }
}
